package com.material.pound.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.material.pound.FuelPoundParams;
import com.material.pound.domain.FuelPound;
import com.material.pound.params.FuelPoundImportParams;
import com.material.pound.params.FuelPoundQuery;
import com.material.pound.params.FuelPoundQueryParams;
import com.material.pound.params.FuelPoundSettleParams;
import com.material.pound.params.FuelPoundUpdate;
import com.material.pound.vo.FuelDiaryVo;
import com.material.pound.vo.FuelPoundDetailVo;
import com.material.pound.vo.FuelPoundListVo;
import com.material.pound.vo.FuelPoundSettleVo;

/**
 * 磅单信息Service接口
 * 
 * @author ruoyi
 * @date 2025-05-07
 */
public interface IFuelPoundService 
{
    /**
     * 查询磅单信息
     * 
     * @param id 磅单信息主键
     * @return 磅单信息
     */
    public FuelPound selectFuelPoundById(Long id);

    /**
     * 查询磅单信息
     * @param id
     * @return
     */
    FuelPoundDetailVo selectFuelById(Long id);

    /**
     * 查询磅单信息列表
     * 
     * @param fuelPound 磅单信息
     * @return 磅单信息集合
     */
    public List<FuelPound> selectFuelPoundList(FuelPound fuelPound);

    /**
     * 查询结算列表
     * @param fuelPound
     * @return
     */
    public List<FuelPound> selectFuelPoundSettleList(FuelPoundQuery fuelPound);

    /**
     * 查询磅单信息列表
     * @param fuelPound
     * @return
     */
    List<FuelPoundListVo> selectFuelPoundPageList(FuelPoundQueryParams fuelPound);

    /**
     * 新增磅单信息
     * 
     * @param fuelPound 磅单信息
     * @return 结果
     */
    public int insertFuelPound(FuelPound fuelPound);

    /**
     * 修改磅单信息
     * 
     * @param fuelPound 磅单信息
     * @return 结果
     */
    public int updateFuelPound(FuelPound fuelPound);

    /**
     * 修改磅单信息
     * @param fuelPound
     * @return
     */
    public int updateFuelPoundData(FuelPoundUpdate fuelPound);

    /**
     * 批量删除磅单信息
     * 
     * @param ids 需要删除的磅单信息主键集合
     * @return 结果
     */
    public int deleteFuelPoundByIds(Long[] ids);

    /**
     * 删除磅单信息信息
     * 
     * @param id 磅单信息主键
     * @return 结果
     */
    public int deleteFuelPoundById(Long id);

    /**
     * 化验结果录入
     * @param fuelPound
     */
    void assayResult(FuelPound fuelPound);

    /**
     * 更新结算信息
     * @param id
     */
    void updateSettleInfo(Long id);

    /**
     * 回皮
     * @param fuelPound
     */
    void backSkin(FuelPound fuelPound);

    /**
     * 更新质检信息
     * @param fuelPound
     */
    void uploadQuality(FuelPound fuelPound);

    /**
     * 按日期查询送料日报
     * @param fuelPoundParams
     * @return
     */
    PageInfo<FuelDiaryVo> selectFuelPoundByDate(FuelPoundParams fuelPoundParams);

    /**
     * 按燃料品名查询送料日报
     * @param fuelPoundParams
     * @return
     */
    PageInfo<FuelDiaryVo> selectFuelPoundByFuel(FuelPoundParams fuelPoundParams);

    /**
     * 按车辆查询送料 日报
     * @param fuelPoundParams
     * @return
     */
    PageInfo<FuelDiaryVo> selectFuelPoundByCar(FuelPoundParams fuelPoundParams);

    /**
     * 按供应商查询送料日报
     * @param fuelPoundParams
     * @return
     */
    PageInfo<FuelDiaryVo> selectFuelPoundBySupplier(FuelPoundParams fuelPoundParams);

    List<FuelDiaryVo> selectFuelPoundByReservationDate(FuelPoundParams fuelPoundParams);

    List<FuelDiaryVo> selectFuelPoundByFuelId(FuelPoundParams fuelPoundParams);

    List<FuelDiaryVo> selectFuelPoundByCarNum(FuelPoundParams fuelPoundParams);

    List<FuelDiaryVo> selectFuelPoundBySupplierId(FuelPoundParams fuelPoundParams);

    /**
     * 导入化验结果
     * @param list
     * @return
     */
    String importAssay(List<FuelPoundImportParams> list);

    /**
     * 结算分析
     * @param query
     * @return
     */
    FuelPoundSettleVo selectFuelSettleInfo(FuelPoundSettleParams query);
}
